Abstract: Energy is a scarce resource in wireless sensor networks (WSN) and conservation of energy has been the subject of extensive research. This paper proposes an optimal routing mechanism under sleep scheduling in wireless sensor networks. Duty cycling is a technique that increases energy efficiency by allowing a node to turn off part or all of its systems for periods of time. These sensor networks have certain characteristics such as limited power and battery driven. In this work, an on demand routing under asynchronous sleep scheduling is proposed for each sensor. The aim of this work is to minimize the energy consumption by nodes so that lifetime will improve. The proposed mechanism is implemented with MATLAB.

Keywords: Sleep Awake Cycle, shortest path in Networks, wireless sensor networks, sleep scheduling.